xen/arm: p2m: Re-implement p2m_remove_using using p2m_set_entry
authorJulien Grall <julien.grall@arm.com>
Thu, 15 Sep 2016 11:28:35 +0000 (12:28 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 28 Sep 2016 01:14:14 +0000 (18:14 -0700)
commit97919d2d926a29489d8cfe4aacf64125346679f2
treed77cf2d5122ed3da4d60472d1bfaf437d4736c52
parent438c5fe4f0c193cac3ee57419a29e45033515189
xen/arm: p2m: Re-implement p2m_remove_using using p2m_set_entry

The function p2m_insert_mapping can be re-implemented using the generic
function p2m_set_entry.

Also drop the operation REMOVE in apply_* as nobody is using it anymore.
Note that the functions could have been dropped in one go at the end,
however I find easier to drop the operations one by one avoiding a big
deletion in the patch that converts the last operation.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabelini <sstabellini@kernel.org>
Tested-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/arm/p2m.c